﻿using net.entity.framework;

namespace net.entity.sandBag.entities {
    public partial class ContactRef : EntityRef {}

    public partial class Contact : Entity {
        #region Members

        private string name;
        private RoleRef roleRef = RoleRef.Unspecified;

        #endregion

        #region Properties

        public string Name {
            get { return name; }
            set {
                CheckLock();
                name = value;
            }
        }

        public RoleRef RoleRef {
            get { return roleRef; }
            set {
                CheckLock();
                roleRef = value;
            }
        }

        #endregion

        #region Constructor

        public Contact() {}

        public Contact(bool isDeleted, int id, int typeId, int revision, string name, RoleRef roleRef)
            : base(isDeleted, id, typeId, revision) {
            this.name = name;
            this.roleRef = roleRef;
        }

        #endregion
    }
}